<?php
namespace App\Params\Backend;
use App\Params\Param;
/**
 * 参数配置保存参数
 *
 * @author: WangBin
 * @date: 2022/1/11
 * @mail: <849850352@qq.com>
 */
class SettingUpdateParam extends Param
{
    public $h5_maintenance = 0;
    public $h5_order_aftersales_day = 10;
    public $h5_order_cancel_time = 20;
    public $h5_order_receive_day = 1;
    public $h5_title = '';

    public function rules()
    {
        return [
            'h5_maintenance' => 'nullable|integer',
            'h5_order_aftersales_day' => 'nullable|integer',
            'h5_order_cancel_time' => 'nullable|integer',
            'h5_order_receive_day' => 'nullable|integer',
            'h5_title' => 'nullable|string'
        ];
    }

    /**
     * @return int
     */
    public function getH5Maintenance(): int
    {
        return $this->h5_maintenance;
    }

    /**
     * @param int $h5_maintenance
     */
    public function setH5Maintenance(int $h5_maintenance): void
    {
        $this->h5_maintenance = $h5_maintenance;
    }

    /**
     * @return int
     */
    public function getH5OrderAftersalesDay(): int
    {
        return $this->h5_order_aftersales_day;
    }

    /**
     * @param int $h5_order_aftersales_day
     */
    public function setH5OrderAftersalesDay(int $h5_order_aftersales_day): void
    {
        $this->h5_order_aftersales_day = $h5_order_aftersales_day;
    }

    /**
     * @return int
     */
    public function getH5OrderCancelTime(): int
    {
        return $this->h5_order_cancel_time;
    }

    /**
     * @param int $h5_order_cancel_time
     */
    public function setH5OrderCancelTime(int $h5_order_cancel_time): void
    {
        $this->h5_order_cancel_time = $h5_order_cancel_time;
    }

    /**
     * @return int
     */
    public function getH5OrderReceiveDay(): int
    {
        return $this->h5_order_receive_day;
    }

    /**
     * @param int $h5_order_receive_day
     */
    public function setH5OrderReceiveDay(int $h5_order_receive_day): void
    {
        $this->h5_order_receive_day = $h5_order_receive_day;
    }

    /**
     * @return string
     */
    public function getH5Title(): string
    {
        return $this->h5_title;
    }

    /**
     * @param string $h5_title
     */
    public function setH5Title(string $h5_title): void
    {
        $this->h5_title = $h5_title;
    }
}
